﻿/****************************** Module Header ******************************\
 * Module Name:  tOrderOrderDetail.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 订单-订单管理-购物车 数据实体类
	/// </summary>
    [DBTable(Common = "订单-订单管理-购物车")]
	public class tOrderOrderDetail
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
		private Guid? _ID;

		/// <summary>
        /// 订单流水号
		/// </summary>
        public string OrderSerialNo { get { return _OrderSerialNo; } set { _OrderSerialNo = value; } }

        [DBColumn(Alias = "订单流水号", Length = "32")]
        private string _OrderSerialNo;

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", Length = "32")]
        private string _UserName;

		/// <summary>
        /// 商品Guid编号
		/// </summary>
		public Guid ProductID { get { return _ProductID ?? default(Guid); } set { _ProductID = value; } }

        [DBColumn(Alias = "商品Guid编号")]
        private Guid? _ProductID;

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get { return _ProductName; } set { _ProductName = value; } }

        [DBColumn(Alias = "商品名称", Length = "32")]
        private string _ProductName;

		/// <summary>
        /// 商品条码
		/// </summary>
        public string ProductBarCode { get { return _ProductBarCode; } set { _ProductBarCode = value; } }

        [DBColumn(Alias = "商品条码", CanBeNull = true, Length = "32")]
        private string _ProductBarCode;
        
        /// <summary>
        /// 上级编号
        /// </summary>
        public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

        [DBColumn(Alias = "上级编号", DefaultValue = "00000000-0000-0000-0000-000000000000")]
        private Guid? _ParentID;

		/// <summary>
        /// 购买数量
		/// </summary>
		public int Number { get { return _Number ?? default(int); } set { _Number = value; } }

        [DBColumn(Alias = "购买数量")]
		private int? _Number;

		/// <summary>
        /// 产品单价
		/// </summary>
		public decimal Price { get { return _Price ?? default(decimal); } set { _Price = value; } }

        [DBColumn(Alias = "产品单价")]
		private decimal? _Price;

		/// <summary>
        /// 小计金额
		/// </summary>
		public decimal Amount { get { return _Amount ?? default(decimal); } set { _Amount = value; } }

        [DBColumn(Alias = "小计金额")]
		private decimal? _Amount;

		/// <summary>
        /// 规格信息
		/// </summary>
		public string Specification { get { return _Specification; } set { _Specification = value; } }

        [DBColumn(Alias = "规格信息", CanBeNull = true, Length = "Max")]
		private string _Specification;

		/// <summary>
        /// 商品预览图
		/// </summary>
		public string Thumb { get { return _Thumb; } set { _Thumb = value; } }

        [DBColumn(Alias = "商品预览图", CanBeNull = true, Length = "255")]
		private string _Thumb;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedTime;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
